<?php if ($this->_var['best_goods']): ?>
  <?php if ($this->_var['cat_rec_sign'] != 1): ?>
<div class="title-div-tit clearfix">
<img src="themes/default_old/images/best_products.gif" alt="best products" width="158" height="39" />
<?php if ($this->_var['cat_rec'] [ 1 ]): ?>
  <ul>
    <li><a href="javascript:void(0)" onclick="get_cat_recommend(1, 0)"><?php echo $this->_var['lang']['all_goods']; ?></a></li>
    <?php $_from = $this->_var['cat_rec']['1']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'rec_data');if (count($_from)):
    foreach ($_from AS $this->_var['rec_data']):
?>
    <li><a href="javascript:void(0)" onclick="get_cat_recommend(1, <?php echo $this->_var['rec_data']['cat_id']; ?>)"><?php echo $this->_var['rec_data']['cat_name']; ?></a></li>
    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  </ul>
<?php endif; ?>
</div>
<div class="content-div" id="show_best_area">
  <?php endif; ?>
  <?php $_from = $this->_var['best_goods']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods');if (count($_from)):
    foreach ($_from AS $this->_var['goods']):
?>
  <table border="0" cellpadding="3" cellspacing="1" class="goods-table" style="float: left">
    <tr>
      <td align="center"><a href="<?php echo $this->_var['goods']['url']; ?>"><img src="<?php echo $this->_var['goods']['thumb']; ?>" border="0" alt="<?php echo htmlspecialchars($this->_var['goods']['name']); ?>" class="thumb" /></a></td>
    </tr>
    <tr>
      <td><a href="<?php echo $this->_var['goods']['url']; ?>" title="<?php echo htmlspecialchars($this->_var['goods']['name']); ?>"><?php echo $this->_var['goods']['short_style_name']; ?></a><br />
        <?php if ($this->_var['goods']['promote_price'] != ""): ?>
        <?php echo $this->_var['lang']['promote_price']; ?><span class="goods-price"><?php echo $this->_var['goods']['promote_price']; ?></span>
        <?php else: ?>
        <?php echo $this->_var['lang']['shop_price']; ?><span class="goods-price"><?php echo $this->_var['goods']['shop_price']; ?></span>
        <?php endif; ?>
      </td>
    </tr>
  </table>
  <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  <br style="clear:both"/>
  <div style="text-align:right"><a href="search.php?intro=best">more...</a></div>
  <?php if ($this->_var['cat_rec_sign'] != 1): ?>
</div>
  <?php endif; ?>
<?php endif; ?>
